package com.zzyl.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.github.pagehelper.Page;
import com.zzyl.entity.NursingProject;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 护理项目Mapper接口
 */
@Mapper
public interface NursingProjectMapper {

    Page<NursingProject> selectByPage(String name, Integer status);

    void insert(NursingProject nursingProject);
    //根据id查询护理项目
    NursingProject selectById(Long id);
    //修改护理项目
    void update(NursingProject nursingProject);

    List<NursingProject> selectList(LambdaQueryWrapper<NursingProject> queryWrapper);

    void updateStatusById(Long id, Integer status);

    void deleteById(Long id);
}